package io.renren.modules.practice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.modules.practice.entity.PythonQuizEntity;
import io.renren.modules.practice.entity.dto.PythonSubmitDto;

import java.util.List;

public interface PythonPracticeService extends IService<PythonQuizEntity> {

    /**
     * 根据章节ID查询Python练习题列表
     */
    List<PythonQuizEntity> getQuizListByChapterId(Integer chapterId);

    /**
     * 根据题目ID查询题目详情
     */
    PythonQuizEntity getQuizById(Integer quizId);

    /**
     * 提交Python基础题目答案
     */
    boolean submitPythonAnswer(PythonSubmitDto submitDto);
} 